<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>Bootstrap, from Twitter</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="description" content="">
		<meta name="author" content="">
		<link href='http://fonts.googleapis.com/css?family=Droid+Serif' rel='stylesheet' type='text/css'>

		<link rel="stylesheet/less" type="text/css" href="/assets/less/home.less">
		<script src="/assets/js/libs/less-1.3.0.min.js"></script>
		<link href='http://fonts.googleapis.com/css?family=Droid+Serif' rel='stylesheet' type='text/css'>

		<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
		<!--[if lt IE 9]>
		<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->

		<!-- Le fav and touch icons -->
		<link rel="shortcut icon" href="/assets/img/favicon.ico">
		<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/assets/ico/apple-touch-icon-144-precomposed.png">
		<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/ico/apple-touch-icon-114-precomposed.png">
		<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/assets/ico/apple-touch-icon-72-precomposed.png">
		<link rel="apple-touch-icon-precomposed" href="/assets/ico/apple-touch-icon-57-precomposed.png">
	</head>

	<body id="body">
		<div class="wrapper">
			<div class="top-bar">
				<span class="white-text">Share Bill No Big Deal!</span>
				<span class="sb-logout"><i class="icon-off icon-white"></i></span>
				<span class="white-text sb-email" id="current-user"></span>
			</div>
			<div class="main-content">
				<div class="sb-controls">
					<div>
						<ul class="menu">
							<li class="active" id="new">
								<a href="#new"><i class="icon-pencil"></i> Create new bill</a>
							</li>
							<li id="sent">
								<a href="#sent"><i class="icon-book"></i> My bills</a>
							</li>
							<li id="received">
								<a href="#received"><i class="icon-share-alt"></i> Bills shared by friends</a>
							</li>
						</ul>
					</div>

				</div>
				<div class="sb-content" id="detail">

				</div>

				<div style="clear:both"></div>
			</div>
			<div class="bottom-bar"></div>

		</div>
		<!-- Le javascript
		================================================== -->
		<!-- Placed at the end of the document so the pages load faster -->
		<!-- Templates -->
		<script type="text/template" id="preview-new-bill-tpl">
			{% include 'preview-new-bill-tpl.html' %}
		</script>
		<script type="text/template" id="my-bill-tpl">
			{% include 'my-bill-tpl.html' %}
		</script>
		<script type="text/template" id="no-bill-tpl">
			{% include 'no-bill-tpl.html' %}
		</script>
		<script type="text/template" id="no-bill-received-tpl">
			{% include 'no-bill-received-tpl.html' %}
		</script>
		<script type="text/template" id="received-bill-tpl">
			{% include 'received-bill-tpl.html' %}
		</script>
		<script type="text/template" id="new-bill-tpl">
			{% include 'new-bill-tpl.html' %}
		</script>
		<script type="text/template" id="new-friend-bill-tpl">
			{% include 'new-friend-bill-tpl.html' %}
		</script>

		<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
		<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>
		<script>
			window.jQuery || document.write('<script src="/assets/js/libs/jquery-1.7.2.min.js"><\/script>')
		</script>
		<script src="/assets/js/libs/underscore.js"></script>
		<script src="/assets/js/libs/backbone.js"></script>
		<script src="/assets/js/plugins/bootstrap/bootstrap.min.js"></script>

		<!--Plugins -->
		<script src="/assets/js/plugins/autosize/jquery.autosize-min.js"></script>
		<script src="/assets/js/plugins/bootstrap/bootstrap-tooltip.js"></script>
		<script src="/assets/js/plugins/google/base.js"></script>
		<script src="/assets/js/plugins/google/string.js"></script>
		<script src="/assets/js/plugins/google/emailaddress.js"></script>

		<!-- Utilities -->
		<script src="/assets/js/app/namespace.js"></script>
		<script src="/assets/js/app/vm.js"></script>
		<script src="/assets/js/app/router.js"></script>

		<!-- Data -->
		<script type="text/javascript">
			//<![CDATA[
			SB.user = {{user}}
			SB.createdBills = {{created_bills}} ;
			SB.requestedBills = {{requested_bills}};
			//]]
		</script>

		<!-- App -->
		<script src="/assets/js/app/new_bill_module.js"></script>
		<script src="/assets/js/app/created_bills_module.js"></script>
		<script src="/assets/js/app/received_bills_module.js"></script>
		<script src="/assets/js/app/home_module.js"></script>

	</body>
</html>
